/**
 * @author Mirko Bordjoski
 */	
package org.piwik.requests
{
	//import org.piwik.methods.VisitFrequencyMethods;
	import org.piwik.requests.PiwikRequest;
	
	public class VisitFrequency
	{
		
		public static const GET_SUMMARY:String = "VisitFrequency.getSummary";
		public static const GET_VISITS_RETURNING:String = "VisitFrequency.getVisitsReturning";
		
		
		
		public function VisitFrequency(){}
		
		
		
		public static function getSummary($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 20):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = VisitFrequency.GET_SUMMARY;//VisitFrequencyMethods.GET_SUMMARY;
			req.period = $period;
			req.requestType = "getSummary";
			
			return req;				
		}
		
		
		
		public static function getVisitsReturning($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 20):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = VisitFrequency.GET_VISITS_RETURNING;//VisitFrequencyMethods.GET_VISITS_RETURNING;
			req.period = $period;
			req.requestType = "getVisitsReturning";
			
			return req;				
		}

	}
}